#!/bin/bash

gcc -o main main.c

if [ "$?" != "0" ]; then
	echo "build failed"
	exit
fi

echo "----- main --------"
time ./main < in

exit

gcc -o gen gen.c

if [ "$?" != "0" ]; then
	echo "build failed"
	exit
fi

echo "----- generator --------"
time ./gen > in.gen

